package com.czl.websocket.server;

import com.czl.websocket.bean.User;
import com.czl.websocket.util.FruitName;
import com.czl.websocket.util.Images;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    public static User getUserInfo(String uid){
        User user = new User();
        user.setUid(uid);
        user.setNickName(FruitName.randomName(uid));
        user.setAvatar(Images.randomImg(uid));
        return user;
     }
}
